package com.zhiqihang.course;

import com.zhiqihang.result.ResultCode;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

@Getter
@AllArgsConstructor
@NoArgsConstructor
public enum CourseCode implements ResultCode {
    COURSE_NOT_FOUND(2001, "操作失败"),
    COURSE_FOUND(2000, "操作成功");

    public Integer code;
    public String msg;

    @Override
    public int code() {
        return 0;
    }

    @Override
    public String msg() {
        return "";
    }
}
